package top.hcode.hoj.pojo.entity.org;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * (org)表实体类
 *
 * @author orangej
 * @since 2025-01-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("org")
public class Org implements Serializable {

    private static final long serialVersionUID = 9558433428L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    private String orgName;

    private Integer orgType;

    private String parentId;

    private String treeCode;

    private String tyOrgId;

    @ApiModelProperty(value = "年级编号，0-12，分别代表学前班至高三")
    private Integer gradeNum;

    @ApiModelProperty(value = "班级编号")
    private Integer classNum;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    /*关联属性*/

}
